﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ArgusLight.ArgusMath
{
	public struct Interval
	{
		public double Min { get; set; }
		public double Max { get; set; }
		public double Length { get { return this.Max - this.Min; } }

		public Interval(double Min, double Max)
			: this()
		{
			this.Min = Min;
			this.Max = Max;
		}

		public bool IsInInterval(double d)
		{
			return (d >= this.Min && d <= this.Max);
		}
	}
}
